package com.csust.cg.mongodb.domain.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

/**
 * @author chenguang
 */
@Data
public class DocumentVO {

    @NotNull(message = "集合信息不能为空！")
    List<Map<String, Object>> documents;

    @NotBlank(message = "连接ID不能为空！")
    String connectionId;

    @NotBlank(message = "数据库名不能为空！")
    String databaseName;

    @NotBlank(message = "集合名不能为空！")
    String collectionName;

}
